home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
090
/
wheels2.arc
/
MOVEFILE.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1985-06-28
|
854b
|
31 lines
{@@@@@@@@@@@ copyright (C) 1984 by Neil J. Rubenking @@@@@@@@@@@@@@@@@@@@@@@@
The purchaser of these procedures and functions may include them in COMPILED
programs freely, but may not sell or give away the source text.
This program uses the procedure MOVE to move a file from one subdirectory to
another, possibly renaming it in the process.}
{@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@}
program Move_File;
{$I filename.typ}
{$I regpack.typ}
{$I movefile.lib}
{$I errmessg.lib}
var
Old, New : filename_type;
error : byte;
begin
Write('Move: ');
ReadLn(Old);
Write('To: ');
ReadLn(New);
MOVEFILE(Old,New,error);
if error = 0 then
begin
WriteLn('Sucessfully moved ',old);
WriteLn(' to ',new);
end
else
WriteLn(message(error));
end.